<%--会员信息--%>
<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<!-- 导入头部top文件 start -->
<%@include file="../common/header.jsp" %>
<body class="gray-bg">
<div class="wrapper wrapper-content animated fadeInUp">
    <div class="row">
        <div class="col-sm-12">
            <div class="ibox">
                <div class="ibox-title">
                    <h5>会员列表</h5>

                    <div class="ibox-tools">
                        <a href="/user/add" class="btn btn-primary btn-xs">创建会员</a>
                    </div>
                </div>

                <div class="ibox-content">
                    <div class="list-view" id="listview">
                    </div>
                </div>
            </div>
        </div>
    </div>
</div>
<script src="/static/js/jquery.min.js?v=2.1.4"></script>
<script src="/static/js/bootstrap.min.js?v=3.3.5"></script>
<script src="/static/js/content.min.js?v=1.0.0"></script>
<script src="/static/js/listview.js?v=1.0.0"></script>
<script src="/static/js/plugins/dialog/dialog-min.js?v=1.0.0"></script>
<script src="/static/js/plugins/dialog/dialog-plus-min.js?v=1.0.0"></script>
<script src="/static/js/cateDialog.js"></script>
<script src="/static/js/common.js?v=2.1.4"></script>
<script>
    (function () {
        $("#listview").listview({
            url: "/user/json",
            editUrl: "/user/edit",
            deleteUrl: "/user/delete",
            showTools: true,
            editStatus: true,
            showView: false,
            showDelete: true,
            fieldInfo: [
                {"field": "no", "title": "序号"},
                {"field": "userName", "title": "用户名"},
                {"field": "userNo", "title": "会员编号"},
                {"field": "nickName", "title": "用户昵称"},
                {"field": "pic", "title": "头像","type":"img"},
                {"field": "mobile", "title": "手机号"},
//                {"field": "status", "title": "状态"},
                {"field": "createDate", "title": "创建时间"},
                {"field": "updateDate", "title": "更新时间"}
            ],
            buttons: {
//                "会员认证": function (item, docId) {
//                    var self = this;
//                    var url = "/user/credent/add/" + docId;
//                    $.get(url, function () {
//                        window.open(url, "_blank");
//                    });
//                },
//                "会员类别": function (item, docId) {
//                    var self = this;
//                    $().cate({
//                        title: "会员类别",
//                        liveSearch: true,
//                        url: G_Path.path + "/user/cate/level",
//                        param: {"type": ""},
//                        callback: function (model) {
//                            $.post(G_Path.path + "/user/update", "id=" + docId + "&" + "parentId=" + model.id, function (text) {
//                                self.get()
//                            });
//                        }
//                    });
//                }
            },
        });
    })(jQuery)
</script>
</body>
</html>
